Rename v25 APIs to v2 APIs#9418
Merged
mangalaman93 merged 1 commit intomainfrom May 21, 2025
Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR renames all api.v25 references to api.v2 across the codebase to align with the updated versioning.
Key changes:
- Updated import aliases and type usages from
apiv25toapiv2. - Regenerated protobuf bindings and adjusted Makefile to use
api.v2.proto. - Bumped the
dgo/v250module version ingo.mod.
Reviewed Changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| worker/import.go | Switched all stream API types from v25 to v2. |
| protos/pb/pb_grpc.pb.go | Updated generated gRPC code imports and types. |
| protos/pb.proto | Changed proto import and RPC signature to v2. |
| protos/Makefile | Copied api.v2.proto and updated codegen flags. |
| go.mod | Upgraded dgo/v250 dependency to a v2 prerelease. |
| edgraph/zero.go | Updated gRPC request/response types to v2. |
| edgraph/server.go | Replaced all apiv25 server interfaces with v2. |
| edgraph/query.go | Swapped query RPC types and enums to v2. |
| edgraph/namespace.go | Adjusted namespace RPC types to v2. |
| edgraph/alter.go | Refactored alter request/response types to v2. |
| dgraph/cmd/dgraphimport/*.go | Changed import client and streaming code to v2. |
| dgraph/cmd/alpha/run.go | Updated server registration to use api.v2. |
|
Running Code Quality on PRs by uploading data to Trunk will soon be removed. You can still run checks on your PRs using trunk-action - see the migration guide for more information. |
ghost
approved these changes
May 21, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.